/******************************************************************************
 * Product: Adempiere ERP & CRM Smart Business Solution                       *
 * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved.                *
 * This program is free software, you can redistribute it and/or modify it    *
 * under the terms version 2 of the GNU General Public License as published   *
 * by the Free Software Foundation. This program is distributed in the hope   *
 * that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.           *
 * See the GNU General Public License for more details.                       *
 * You should have received a copy of the GNU General Public License along    *
 * with this program, if not, write to the Free Software Foundation, Inc.,    *
 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.                     *
 * For the text or an alternative of this public license, you may reach us    *
 * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA        *
 * or via info@compiere.org or http://www.compiere.org/license.html           *
 *****************************************************************************/
/** Generated Model - DO NOT CHANGE */
package org.compiere.model;

import java.sql.ResultSet;
import java.sql.Timestamp;
import java.util.Properties;
import org.compiere.util.KeyNamePair;

/** Generated Model for hrm_education
 *  @author Adempiere (generated) 
 *  @version Release 3.7.0LTS - $Id$ */
public class X_hrm_education extends PO implements I_hrm_education, I_Persistent 
{

	/**
	 *
	 */
	private static final long serialVersionUID = 20120827L;

    /** the default Constructor */
    public X_hrm_education(Properties ctx)
    { 
      super (ctx, null, null);
    } 

    /** Standard Constructor */
    public X_hrm_education (Properties ctx, int hrm_education_ID, String trxName)
    {
      super (ctx, hrm_education_ID, trxName);
      /** if (hrm_education_ID == 0)
        {
			setC_BPartner_ID (0);
			sethrm_education_ID (0);
			sethrm_educationtype (null);
			setProcessed (false);
// N
        } */
    }

    /** Load Constructor */
    public X_hrm_education (Properties ctx, ResultSet rs, String trxName)
    {
      super (ctx, rs, trxName);
    }

    /** AccessLevel
      * @return 3 - Client - Org 
      */
    protected int get_AccessLevel()
    {
      return accessLevel.intValue();
    }

    /** Load Meta Data */
    protected POInfo initPO (Properties ctx)
    {
      POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
      return poi;
    }

    public String toString()
    {
      StringBuffer sb = new StringBuffer ("X_hrm_education[")
        .append(get_ID()).append("]");
      return sb.toString();
    }

	public org.compiere.model.I_C_BPartner getC_BPartner() throws RuntimeException
    {
		return (org.compiere.model.I_C_BPartner)MTable.get(getCtx(), org.compiere.model.I_C_BPartner.Table_Name)
			.getPO(getC_BPartner_ID(), get_TrxName());	}

	/** Set Business Partner .
		@param C_BPartner_ID 
		Identifies a Business Partner
	  */
	public void setC_BPartner_ID (int C_BPartner_ID)
	{
		if (C_BPartner_ID < 1) 
			set_Value (COLUMNNAME_C_BPartner_ID, null);
		else 
			set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID));
	}

	/** Get Business Partner .
		@return Identifies a Business Partner
	  */
	public int getC_BPartner_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set Description.
		@param Description 
		Optional short description of the record
	  */
	public void setDescription (String Description)
	{
		set_Value (COLUMNNAME_Description, Description);
	}

	/** Get Description.
		@return Optional short description of the record
	  */
	public String getDescription () 
	{
		return (String)get_Value(COLUMNNAME_Description);
	}

	/** Set hrm_academicdate.
		@param hrm_academicdate hrm_academicdate	  */
	public void sethrm_academicdate (Timestamp hrm_academicdate)
	{
		set_Value (COLUMNNAME_hrm_academicdate, hrm_academicdate);
	}

	/** Get hrm_academicdate.
		@return hrm_academicdate	  */
	public Timestamp gethrm_academicdate () 
	{
		return (Timestamp)get_Value(COLUMNNAME_hrm_academicdate);
	}

	public I_hrm_academicType gethrm_academicType() throws RuntimeException
    {
		return (I_hrm_academicType)MTable.get(getCtx(), I_hrm_academicType.Table_Name)
			.getPO(gethrm_academicType_ID(), get_TrxName());	}

	/** Set hrm_academicType.
		@param hrm_academicType_ID hrm_academicType	  */
	public void sethrm_academicType_ID (int hrm_academicType_ID)
	{
		if (hrm_academicType_ID < 1) 
			set_Value (COLUMNNAME_hrm_academicType_ID, null);
		else 
			set_Value (COLUMNNAME_hrm_academicType_ID, Integer.valueOf(hrm_academicType_ID));
	}

	/** Get hrm_academicType.
		@return hrm_academicType	  */
	public int gethrm_academicType_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_hrm_academicType_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set hrm_certificate.
		@param hrm_certificate hrm_certificate	  */
	public void sethrm_certificate (String hrm_certificate)
	{
		set_Value (COLUMNNAME_hrm_certificate, hrm_certificate);
	}

	/** Get hrm_certificate.
		@return hrm_certificate	  */
	public String gethrm_certificate () 
	{
		return (String)get_Value(COLUMNNAME_hrm_certificate);
	}

	/** Set hrm_certificateCompany.
		@param hrm_certificateCompany hrm_certificateCompany	  */
	public void sethrm_certificateCompany (String hrm_certificateCompany)
	{
		set_Value (COLUMNNAME_hrm_certificateCompany, hrm_certificateCompany);
	}

	/** Get hrm_certificateCompany.
		@return hrm_certificateCompany	  */
	public String gethrm_certificateCompany () 
	{
		return (String)get_Value(COLUMNNAME_hrm_certificateCompany);
	}

	/** Set hrm_chitno.
		@param hrm_chitno hrm_chitno	  */
	public void sethrm_chitno (String hrm_chitno)
	{
		set_Value (COLUMNNAME_hrm_chitno, hrm_chitno);
	}

	/** Get hrm_chitno.
		@return hrm_chitno	  */
	public String gethrm_chitno () 
	{
		return (String)get_Value(COLUMNNAME_hrm_chitno);
	}

	/** Set hrm_crtificateno.
		@param hrm_crtificateno hrm_crtificateno	  */
	public void sethrm_crtificateno (String hrm_crtificateno)
	{
		set_Value (COLUMNNAME_hrm_crtificateno, hrm_crtificateno);
	}

	/** Get hrm_crtificateno.
		@return hrm_crtificateno	  */
	public String gethrm_crtificateno () 
	{
		return (String)get_Value(COLUMNNAME_hrm_crtificateno);
	}

	/** Set hrm_diplomano.
		@param hrm_diplomano hrm_diplomano	  */
	public void sethrm_diplomano (String hrm_diplomano)
	{
		set_Value (COLUMNNAME_hrm_diplomano, hrm_diplomano);
	}

	/** Get hrm_diplomano.
		@return hrm_diplomano	  */
	public String gethrm_diplomano () 
	{
		return (String)get_Value(COLUMNNAME_hrm_diplomano);
	}

	/** Set hrm_diplomaqualification.
		@param hrm_diplomaqualification hrm_diplomaqualification	  */
	public void sethrm_diplomaqualification (String hrm_diplomaqualification)
	{
		set_Value (COLUMNNAME_hrm_diplomaqualification, hrm_diplomaqualification);
	}

	/** Get hrm_diplomaqualification.
		@return hrm_diplomaqualification	  */
	public String gethrm_diplomaqualification () 
	{
		return (String)get_Value(COLUMNNAME_hrm_diplomaqualification);
	}

	/** Set hrm_diplomaspeciality.
		@param hrm_diplomaspeciality hrm_diplomaspeciality	  */
	public void sethrm_diplomaspeciality (String hrm_diplomaspeciality)
	{
		set_Value (COLUMNNAME_hrm_diplomaspeciality, hrm_diplomaspeciality);
	}

	/** Get hrm_diplomaspeciality.
		@return hrm_diplomaspeciality	  */
	public String gethrm_diplomaspeciality () 
	{
		return (String)get_Value(COLUMNNAME_hrm_diplomaspeciality);
	}

	/** Set hr education.
		@param hrm_education_ID hr education	  */
	public void sethrm_education_ID (int hrm_education_ID)
	{
		if (hrm_education_ID < 1) 
			set_ValueNoCheck (COLUMNNAME_hrm_education_ID, null);
		else 
			set_ValueNoCheck (COLUMNNAME_hrm_education_ID, Integer.valueOf(hrm_education_ID));
	}

	/** Get hr education.
		@return hr education	  */
	public int gethrm_education_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_hrm_education_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** hrm_educationtype AD_Reference_ID=1000013 */
	public static final int HRM_EDUCATIONTYPE_AD_Reference_ID=1000013;
	/** higher = 1 */
	public static final String HRM_EDUCATIONTYPE_Higher = "1";
	/** incomplete higher = 2 */
	public static final String HRM_EDUCATIONTYPE_IncompleteHigher = "2";
	/** secondary special = 3 */
	public static final String HRM_EDUCATIONTYPE_SecondarySpecial = "3";
	/** average = 4 */
	public static final String HRM_EDUCATIONTYPE_Average = "4";
	/** incomplete secondary = 5 */
	public static final String HRM_EDUCATIONTYPE_IncompleteSecondary = "5";
	/** postgraduate = 6 */
	public static final String HRM_EDUCATIONTYPE_Postgraduate = "6";
	/** academic title = 7 */
	public static final String HRM_EDUCATIONTYPE_AcademicTitle = "7";
	/** Set hrm_educationtype.
		@param hrm_educationtype hrm_educationtype	  */
	public void sethrm_educationtype (String hrm_educationtype)
	{

		set_Value (COLUMNNAME_hrm_educationtype, hrm_educationtype);
	}

	/** Get hrm_educationtype.
		@return hrm_educationtype	  */
	public String gethrm_educationtype () 
	{
		return (String)get_Value(COLUMNNAME_hrm_educationtype);
	}

    /** Get Record ID/ColumnName
        @return ID/ColumnName pair
      */
    public KeyNamePair getKeyNamePair() 
    {
        return new KeyNamePair(get_ID(), String.valueOf(gethrm_educationtype()));
    }

	/** Set hrm_finishyear.
		@param hrm_finishyear hrm_finishyear	  */
	public void sethrm_finishyear (int hrm_finishyear)
	{
		set_Value (COLUMNNAME_hrm_finishyear, Integer.valueOf(hrm_finishyear));
	}

	/** Get hrm_finishyear.
		@return hrm_finishyear	  */
	public int gethrm_finishyear () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_hrm_finishyear);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set hrm_institutionname.
		@param hrm_institutionname hrm_institutionname	  */
	public void sethrm_institutionname (String hrm_institutionname)
	{
		set_Value (COLUMNNAME_hrm_institutionname, hrm_institutionname);
	}

	/** Get hrm_institutionname.
		@return hrm_institutionname	  */
	public String gethrm_institutionname () 
	{
		return (String)get_Value(COLUMNNAME_hrm_institutionname);
	}

	/** Set hrm_startyear.
		@param hrm_startyear hrm_startyear	  */
	public void sethrm_startyear (int hrm_startyear)
	{
		set_Value (COLUMNNAME_hrm_startyear, Integer.valueOf(hrm_startyear));
	}

	/** Get hrm_startyear.
		@return hrm_startyear	  */
	public int gethrm_startyear () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_hrm_startyear);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set Processed.
		@param Processed 
		The document has been processed
	  */
	public void setProcessed (boolean Processed)
	{
		set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed));
	}

	/** Get Processed.
		@return The document has been processed
	  */
	public boolean isProcessed () 
	{
		Object oo = get_Value(COLUMNNAME_Processed);
		if (oo != null) 
		{
			 if (oo instanceof Boolean) 
				 return ((Boolean)oo).booleanValue(); 
			return "Y".equals(oo);
		}
		return false;
	}
}